package spring.cloud.tasks.core.task.service;

import spring.cloud.tasks.metadata.api.task.entity.TaskRuntimeEntity;

import java.util.List;


public interface TaskRuntimeService {

    void insert(TaskRuntimeEntity taskRuntimeEntity);

    TaskRuntimeEntity taskRuntimeIsExist(TaskRuntimeEntity taskRuntimeEntity);

    void updateTaskRuntimeHeartBeatTime(TaskRuntimeEntity taskRuntimeEntity);

    List<TaskRuntimeEntity> selectTaskRuntimeByTaskName(String cluster, String taskName, Integer judgeDeadInterval);

    void delete(TaskRuntimeEntity taskRuntimeEntity);
}
